const express = require('express');
const userInfo = require('../../app/controllers/userInfo.server.controller.js');

module.exports = (app)=>{
    const router = express.Router();
    router.route('/getuserInfoByUserId/:userId')
    .get(userInfo.getUserInfoByUserId);
    
    router.route('/addUserInfo')
    .post(userInfo.adduserInfo);
    
    app.use('/users', router);
}